﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.CApCableGenerationSession
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System;


namespace DnProcessSimulateCommands;

internal class CApCableGenerationSession : IDisposable
{
  private readonly ICApFLEXCableAttributeViewModel m_attributeViewModel;

  public CApCableGenerationSession(ICApFLEXCableAttributeViewModel attributeViewModel)
  {
    this.m_attributeViewModel = attributeViewModel ?? throw new ArgumentNullException(nameof (attributeViewModel));
    this.m_attributeViewModel.IsCableBeingGenerated = true;
  }

  public void Dispose() => this.m_attributeViewModel.IsCableBeingGenerated = false;
}
